var Person = /** @class */ (function () {
    function Person(_name, _age) {
        this._name = _name;
        this._age = _age;
    }
    Object.defineProperty(Person.prototype, "name", {
        get: function () {
            return this._name;
        },
        set: function (newName) {
            this._name = newName;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(Person.prototype, "age", {
        get: function () {
            return this._age;
        },
        set: function (newAge) {
            this._age = newAge;
        },
        enumerable: false,
        configurable: true
    });
    return Person;
}());
var p = new Person("陶品奇", 22);
console.log(p);
console.log(p.name, p.age);
